package structure.proxy;

/**
 * @author dali
 * @date 2021-07-20 20:19
 * @Description
 */

public class UserDao implements IUserDao {
    @Override
    public void save() {
//        begin();
        //核心业务
        System.out.println("保存成功");
//        close();
    }
    public void begin() {
        System.out.println("开始事务");
    }
    public void close() {
        System.out.println("关闭事务");
    }
}
